import rtconfig
from building import *

cwd = GetCurrentDir()

# add the general drivers.
src = Glob('board.c')
src += Glob('bd_i2c.c')
src += Glob('bd_timpwm.c')

path = [cwd]

if GetDepend('BSP_USING_UART'):
    src += ['bd_usart.c']

if GetDepend('BSP_USING_DCMI'):
    src += ['bd_dcmi.c']
    src += ['drv_camera.c']
    src += ['drv_ov2640.c']
    src += ['drv_ov7725.c']

# STM32H743xx || STM32H750xx || STM32F753xx
# You can select chips from the list above
CPPDEFINES = ['STM32H743xx']
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)

Return('group')
